package com.hzlx.feign;

import com.hzlx.MesMaterialBatchesDto;
import com.hzlx.MesMaterialsDto;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.core.web.page.TableDataInfo;
import com.ruoyi.common.security.annotation.RequiresPermissions;
import org.springframework.beans.BeanUtils;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(contextId = "materialService",value="material-service")
public interface materialService {

    @GetMapping(value = "/inventory/batchesDto/{materialId}")
    public MesMaterialBatchesDto getInfoDto(@PathVariable("materialId") Integer materialId);
    @PutMapping("/inventory/batchesDto")
    public void editByWorkOrder(@RequestBody MesMaterialBatchesDto mesMaterialBatchesDto);


}
